<script type="text/javascript" src="http://static.me.zing.vn/v3/js/zm.xcall-1.01.js"></script>
<marquee style="margin-top: 5px;" direction="left"> <font size=3 color=Red> Chúc bạn có một ngày thật vui vẻ! </font></marquee>
<div id="topmenu" class="navbar navbar-inverse">
	<div class="container">
		<div class="navbar-header">
			<img src="images/ic_zigo.png" alt="Zigo app" height="42" style=" margin-top: 3px; ">
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav menu-content">
				<?php 
					//if (!isset($_GET['menu_active'])){
						echo "<li ><a href='./home.php'>TRANG CHỦ</a></li>";
						//echo "<li ><a href='./home.php#changepage'>TƯỜNG CHUNG</a></li>";
						//echo "<li ><a href='./user.php?".$_SERVER['QUERY_STRING']."&menu_active=user'>CÁ NHÂN</a></li>";
						echo "<li ><a href='./user.php?user_id_zing=".$_SESSION['userIdZing']."'>CÁ NHÂN</a></li>";
						
						if(strcmp($_SESSION['userIdZing'],'69816082')==0 || strcmp($_SESSION['userIdZing'],'1137012')==0){
							echo "<li ><a href='./report.php'>BÁO LỖI</a></li>";
							echo "<li ><a href='http://localhost/zigo/?".$_SESSION['url_query']."'>LOCALHOST</a></li>";
						}
					//}
					//else{
					//	$string_url = explode("&menu_active",$_SERVER['QUERY_STRING']);
					//	if (strcmp($_GET['menu_active'],'user')==0){
					//		echo "<li ><a href='./home.php?".$string_url[0]."'>TRANG CHỦ</a></li>";
					//		echo "<li ><a href='#'>TƯỜNG CHUNG</a></li>";;
					//		echo "<li class='active'><a href='#'>CÁ NHÂN</a></li>";
					//	}
					//}
				
				?>
			</ul>
			<form name='searchForm' class="navbar-form navbar-right" role="search" action="search.php" method="post" onsubmit="return validateForm()">
				<div class="form-group search">
					<input type="text" name='key-word' class="form-control" placeholder="Nhập thông tin tìm kiếm">
				</div>
				<button type="submit" class="btn btn-danger">Tìm kiếm</button>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">    
	function reSizeHeigh(){
        var h = document.getElementById('zigo_container').offsetHeight;
        //console.log("ready - h: " + h);
        h = parseFloat(h);                
        zmXCall.resizeParent({
            id:"zigo",
            height:h
        });	     
    };
	function validateForm(){
		var x=document.forms["searchForm"]["key-word"].value;
		if (x==null || x==""){
			return false;
		}else{
			return true;
		}
	}
</script>